#! /bin/bash

echo "==========================="
# run examples
EXAMPLE_NAME="example-1"
echo "This program run " ${EXAMPLE_NAME}
cd build/
\rm -r *
\rm -r ../${EXAMPLE_NAME}/exe/*
\rm -r ../${EXAMPLE_NAME}/checks/*
cmake ../${EXAMPLE_NAME}/ -DCMAKE_BUILD_TYPE:string=Release
make
ctest ../${EXAMPLE_NAME}/
cp Testing/Temporary/*.log ../${EXAMPLE_NAME}/log/
cd ../
echo "==========================="
